extends "../jianye-1/jianye-1.gd"

func _extInit():
	._extInit()
	lv = 2
	addSkill("回合结束时，若自身没有死亡，则获得20金", "军备运输")

var flag = true
func _onBattleEnd():
	._onBattleEnd()
	if (flag or upgraded == 2) and team == 1:
		sys.main.player.plusGold(20)
	flag = true

func _onDeath(atkInfo):
	._onDeath(atkInfo)
	flag = false